#function: centos6 build golang 1.6.4
#parmeter:
#author: yeslf
#version:1.0
#Test: centos6

FROM lccentos6
MAINTAINER yeslf yeslf@xxx.com

RUN mkdir /tmp  /usr/local ;yum install wget -y ; \
cd /tmp ; wget http://172.27.1.200/tool/go/binary/gobinary1.6.4.tar.gz ;  \
tar -zxf gobinary1.6.4.tar.gz -C /usr/local  ; rm -f  gobinary1.6.4.tar.gz ;\
yum clean all 

ENV GOROOT=/usr/local/go1.6.4
ENV GOBIN=$GOROOT/bin
ENV GOPATH=/usr/local/go1.6.4/gopath
ENV PATH=$PATH:$GOPATH:$GOBIN:$GOPATH

